home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 551-575 / disk_562 / intuisup / editor / source.lzh / protos.h < prev    next >
C/C++ Source or Header  |  1991-10-25  |  7KB  |  213 lines

  1.         /*************************************
  2.          *                                   *
  3.          *             Editor v1.0           *
  4.          *   by Torsten Jürgeleit in 07/91   *
  5.          *                                   *
  6.          *        Prototypes & Pragmas       *
  7.          *                                   *
  8.          *************************************/
  9.  
  10.     /* Prototypes - main.c */
  11.  
  12. LONG init_resources(VOID);
  13.  
  14.     /* Pragmas - main.c */
  15.  
  16.     /* Prototypes - req.c */
  17.  
  18. VOID show_error(SHORT status);
  19. VOID continue_requester(BYTE *title, BYTE *text);
  20. VOID intuition_error_requester(BYTE *text);
  21. VOID about_requester(VOID);
  22. BOOL ok_cancel_requester(BYTE *title, BYTE *text);
  23.  
  24.     /* Pragmas - req.c */
  25.  
  26. #pragma regcall(show_error(d0))
  27. #pragma regcall(continue_requester(a0,a1))
  28. #pragma regcall(intuition_error_requester(a0))
  29. #pragma regcall(ok_cancel_requester(a0,a1))
  30.  
  31.     /* Prototypes - editor.c */
  32.  
  33. SHORT editor_action_loop(VOID);
  34. SHORT perform_editor_action(VOID);
  35. VOID  change_editor_mode(USHORT gadget, LONG value);
  36. VOID  print_template_info(VOID);
  37. VOID  clear_template_info(VOID);
  38. VOID  start_gadget_use_mode(VOID);
  39. VOID  end_gadget_use_mode(VOID);
  40.  
  41.     /* Pragmas - editor.c */
  42.  
  43. #pragma regcall(change_editor_mode(d0,d1))
  44.  
  45.     /* Prototypes - project.c */
  46.  
  47. SHORT perform_project_action(VOID);
  48. VOID  end_rubber_banding(VOID);
  49. VOID  print_project_window_title(VOID);
  50. SHORT new_project(USHORT flags);
  51. SHORT new_project_window(USHORT flags);
  52. VOID  clear_project_window(USHORT flags);
  53.  
  54.     /* Pragmas - project.c */
  55.  
  56. #pragma regcall(new_project(d0))
  57. #pragma regcall(new_project_window(d0))
  58. #pragma regcall(clear_project_window(d0))
  59.  
  60.     /* Prototypes - window.c */
  61.  
  62. SHORT change_project_window(VOID);
  63. SHORT change_project_window_action(APTR gl);
  64.  
  65.     /* Pragmas - window.c */
  66.  
  67. #pragma regcall(change_project_window_action(a0))
  68.  
  69.     /* Prototypes - template.c */
  70.  
  71. struct Template  *get_template_by_num(LONG num);
  72. struct Template  *get_template_by_pos(SHORT x, SHORT y);
  73. struct Template  *find_template_by_pos(SHORT x, SHORT y);
  74. VOID   fix_template_bounds(VOID);
  75. USHORT get_modify_mode(SHORT x, SHORT y);
  76. struct Template  *create_template(VOID);
  77. VOID   build_default_template_name(struct Template  *tp);
  78. SHORT  init_default_template_data(struct Template  *tp, BOOL default_name);
  79. struct Template  *clone_template(struct Template  *old_tp, BOOL full_clone);
  80. SHORT  clone_template_data(struct Template  *old_tp,
  81.                           struct Template  *new_tp);
  82. VOID   display_template(struct Template  *tp);
  83. VOID   refresh_all_templates(VOID);
  84. VOID   free_template_list(VOID);
  85. VOID   free_template(struct Template  *tp);
  86. VOID   free_template_data(struct Template  *tp);
  87. VOID   delete_template(struct Template  *tp);
  88.  
  89.     /* Pragmas - template.c */
  90.  
  91. #pragma regcall(get_template_by_num(d0))
  92. #pragma regcall(get_template_by_pos(d0,d1))
  93. #pragma regcall(find_template_by_pos(d0,d1))
  94. #pragma regcall(get_modify_mode(d0,d1))
  95. #pragma regcall(build_default_template_name(a0))
  96. #pragma regcall(init_default_template_data(a0,d0))
  97. #pragma regcall(clone_template(a0,d0))
  98. #pragma regcall(clone_template_data(a0,a1))
  99. #pragma regcall(display_template(a0))
  100. #pragma regcall(free_template(a0))
  101. #pragma regcall(free_template_data(a0))
  102. #pragma regcall(delete_template(a0))
  103.  
  104.     /* Prototypes - subs.c */
  105.  
  106. VOID  draw_box(struct Window  *win, struct Box  *box);
  107. VOID  draw_box_with_border(struct Window  *win, struct Box  *box);
  108. VOID  draw_box_with_offset(struct Window  *win, struct Box  *box,
  109.                           SHORT xoffset, SHORT yoffset);
  110. VOID  *get_head(struct List  *list);
  111. VOID  *get_tail(struct List  *list);
  112. VOID  *get_succ(struct Node  *node);
  113. VOID  *get_pred(struct Node  *node);
  114. VOID  *get_node(struct List  *list, USHORT num);
  115. SHORT duplicate_string(BYTE **ptr, BYTE *text);
  116. SHORT duplicate_text_list(struct Template  *old_tp, struct Template  *new_tp);
  117. SHORT build_template_text_list(struct Template  *tp, BYTE **text_array);
  118. SHORT add_template_text_list_entry(struct Template  *tp, BYTE *text);
  119. VOID  free_template_text_list(struct Template  *tp);
  120. VOID  free_text_list_entry(struct Node  *node);
  121. SHORT build_template_text_array(struct Template  *tp);
  122. struct Node  *build_text_list_entry(BYTE *text);
  123. VOID  free_template_text_array(struct Template  *tp);
  124. struct TextFont  *open_font(struct TextAttr  *ta);
  125. VOID  close_font(struct TextFont  *tf);
  126.  
  127.     /* Pragmas - subs.c */
  128.  
  129. #pragma regcall(draw_box(a0,a1))
  130. #pragma regcall(draw_box_with_border(a0,a1))
  131. #pragma regcall(draw_box_with_offset(a0,a1,d0,d1))
  132. #pragma regcall(get_head(a0))
  133. #pragma regcall(get_tail(a0))
  134. #pragma regcall(get_succ(a0))
  135. #pragma regcall(get_pred(a0))
  136. #pragma regcall(get_node(a0,d0))
  137. #pragma regcall(duplicate_string(a0,a1))
  138. #pragma regcall(duplicate_text_list(a0,a1))
  139. #pragma regcall(build_template_text_list(a0,a1))
  140. #pragma regcall(build_text_list_entry(a0))
  141. #pragma regcall(add_template_text_list_entry(a0,a1))
  142. #pragma regcall(free_template_text_list(a0))
  143. #pragma regcall(free_text_list_entry(a0))
  144. #pragma regcall(build_template_text_array(a0))
  145. #pragma regcall(free_template_text_array(a0))
  146. #pragma regcall(open_font(a0))
  147. #pragma regcall(close_font(a0))
  148.  
  149.     /* Prototypes - save.c */
  150.  
  151. SHORT save_project(VOID);
  152. SHORT write_project_header(BPTR fh);
  153. SHORT write_template(BPTR fh, struct Template  *tp);
  154.  
  155.     /* Pragmas - save.c */
  156.  
  157. #pragma regcall(write_project_header(a0))
  158. #pragma regcall(write_template(a0,a1))
  159.  
  160.     /* Prototypes - load.c */
  161.  
  162. SHORT  load_project(USHORT mode);
  163. SHORT  parse_block(struct FileData  *fd, USHORT block_type, USHORT mode);
  164. SHORT  parse_item(USHORT block_type, BYTE *keyword, BYTE *arg, USHORT mode);
  165. USHORT search_keyword(BYTE *keyword, BYTE **keyword_list);
  166. struct FileData  *open_file(BYTE *name);
  167. SHORT  read_line(struct FileData  *fd);
  168. BYTE   *fill_read_buffer(struct FileData  *fd);
  169. VOID   close_file(struct FileData  *fd);
  170.  
  171.     /* Pragmas - load.c */
  172.  
  173. /* #pragma regcall(parse_block(a0,d0,d1)) --- NO PRAGMA - recursive!!! */
  174. #pragma regcall(parse_item(d0,a0,a1,d1))
  175. #pragma regcall(search_keyword(a0,a1))
  176. #pragma regcall(open_file(a0))
  177. #pragma regcall(read_line(a0))
  178. #pragma regcall(fill_read_buffer(a0))
  179. #pragma regcall(close_file(a0))
  180.  
  181.     /* Prototypes - edit1.c */
  182.  
  183. SHORT edit_template_data(VOID);
  184.  
  185.     /* Pragmas - edit1.c */
  186.  
  187.     /* Prototypes - edit2.c */
  188.  
  189. SHORT edit_template_data_action(struct Template  *old_tp, APTR normal_gl,
  190.               APTR special_gl1, APTR special_gl2, APTR edit_gl);
  191. SHORT change_normal_template_data(APTR gl, struct Template  *tp,
  192.                          USHORT entry, ULONG value);
  193. SHORT change_special_template_data(APTR gl, struct Template  *tp,
  194.                          USHORT entry, ULONG value);
  195.     /* Pragmas - edit2.c */
  196.  
  197. #pragma regcall(edit_template_data_action(a0,a1,a2,a3,d0))
  198. #pragma regcall(change_normal_template_data(a0,a1,d0,d1))
  199. #pragma regcall(change_special_template_data(a0,a1,d0,d1))
  200.  
  201.     /* Prototypes - list.c */
  202.  
  203. APTR  build_text_list_editor(struct Template  *tp, SHORT hoffset,
  204.                                  SHORT voffset);
  205. VOID  change_text_list_editor_mode(APTR gl, USHORT mode);
  206. SHORT perform_text_list_editor_action(APTR gl, struct Template  *tp,
  207.                          USHORT entry, ULONG value);
  208.     /* Pragmas - list.c */
  209.  
  210. #pragma regcall(build_text_list_editor(a0,d0,d1))
  211. #pragma regcall(change_text_list_editor_mode(a0,d0))
  212. #pragma regcall(perform_text_list_editor_action(a0,a1,d0,d1))
  213.